<?php /* Smarty version Smarty-3.0.8, created on 2012-10-09 16:35:04
         compiled from "G:\xampp\htdocs\gy78/template\admin/user_index.html" */ ?>
<?php /*%%SmartyHeaderCode:149905071fb6fe84637-62344036%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '27ad202ab811bb5660ef0f75915e70f01e632504' => 
    array (
      0 => 'G:\\xampp\\htdocs\\gy78/template\\admin/user_index.html',
      1 => 1349620736,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '149905071fb6fe84637-62344036',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php $_template = new Smarty_Internal_Template("admin/header.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate(); $_template->rendered_content = null;?><?php unset($_template);?>
			<ul id="main-nav">  <!-- Accordion Menu -->

				<li>
					<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'admin','a'=>'index'),$_smarty_tpl);?>
" class="nav-top-item no-submenu">控制面板</a>
				</li>

				<li>
					<a href="#" class="nav-top-item">文章</a>
					<ul>
						<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'post','a'=>'write'),$_smarty_tpl);?>
">撰写新文章</a></li>
						<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'post','a'=>'index'),$_smarty_tpl);?>
">文章管理</a></li>
						<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'category','a'=>'index'),$_smarty_tpl);?>
">分类管理</a></li>
					</ul>
				</li>

				<li>
					<a href="#" class="nav-top-item">页面和区块</a>
					<ul>
						<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'page','a'=>'write'),$_smarty_tpl);?>
">撰写新页面</a></li>
                        <li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'area','a'=>'write'),$_smarty_tpl);?>
">撰写新区块</a></li>
						<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'page','a'=>'index'),$_smarty_tpl);?>
">页面管理</a></li>
						<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'area','a'=>'index'),$_smarty_tpl);?>
">区块管理</a></li>
					</ul>
				</li>

				<li>
					<a href="#" class="nav-top-item current">设置</a>
					<ul>
						<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'user','a'=>'edit','uid'=>$_SESSION['userinfo']['uid']),$_smarty_tpl);?>
">个人信息</a></li>
						<li><a class="current" href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'user','a'=>'index'),$_smarty_tpl);?>
">用户和权限</a></li>
					</ul>
				</li>

			</ul> <!-- End #main-nav -->

		</div></div> <!-- End #sidebar -->

		<div id="main-content"> <!-- Main Content Section with everything -->

			<div class="content-box"><!-- Start Content Box -->

				<div class="content-box-header">

					<h3>用户和权限</h3>
					<ul class="content-box-tabs">
						<li><a href="#tab1" class="default-tab">管理</a></li> <!-- href must be unique and match the id of target div -->
						<li><a href="#tab2">添加新用户</a></li>
					</ul>
					<div class="clear"></div>
				</div> <!-- End .content-box-header -->

				<div class="content-box-content">

					<div class="tab-content default-tab" id="tab1">
                    <table>

							<thead>
								<tr>
								   <th>头像</th>
	<th>用户名</th>
	<th>上次登陆信息</th>
	<th>电话</th>
	<th>类型</th>
	<th>操作</th>
	</tr>

	</thead>

							<tfoot>
								<tr>
									<td colspan="6">



									</td>
								</tr>
							</tfoot>

							<tbody>
							<?php if ($_smarty_tpl->getVariable('results')->value==''){?>
							<div>
								<center><font color="red">没有找到您要的用户！</font></center>
							</div>
							<?php }else{ ?>
								<?php  $_smarty_tpl->tpl_vars['one'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('results')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['one']->key => $_smarty_tpl->tpl_vars['one']->value){
?>
								  <tr>
									<td><img src="<?php echo togetavatar(array('gravatar_id'=>$_smarty_tpl->tpl_vars['one']->value['mail'],'rating'=>'PG','size'=>32),$_smarty_tpl);?>
" width="32" height="32" style="border:3px solid #FDCE80;" /></td>
									<td><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'user','a'=>'edit','uid'=>$_smarty_tpl->tpl_vars['one']->value['uid']),$_smarty_tpl);?>
"><?php echo $_smarty_tpl->tpl_vars['one']->value['name'];?>
</a></td>
									<td><?php echo $_smarty_tpl->tpl_vars['one']->value['activated'];?>
</td>
									<td><?php echo $_smarty_tpl->tpl_vars['one']->value['phone'];?>
</td>
									<td><?php echo $_smarty_tpl->tpl_vars['one']->value['acl'];?>
</td>
									<td>
										<!-- Icons -->
										 <a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'user','a'=>'edit','uid'=>$_smarty_tpl->tpl_vars['one']->value['uid']),$_smarty_tpl);?>
" title="Edit"><img src="/resources/images/icons/pencil.png" alt="Edit" /></a>
										 <a href="javascript:void(0);" onclick="delconfirm(<?php echo $_smarty_tpl->tpl_vars['one']->value['uid'];?>
,'<?php echo $_smarty_tpl->tpl_vars['one']->value['name'];?>
');" title="Delete"><img src="/resources/images/icons/cross.png" alt="Delete" /></a>
									</td>
								  </tr>
								<?php }} ?>
							<?php }?>
							</tbody>

					  </table>
</div>
					<!-- End #tab1 -->

					<div class="tab-content" id="tab2">
					<form id="form1" name="form1" method="post" action="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'user','a'=>'add'),$_smarty_tpl);?>
" onsubmit="return aclcode();"><!--请务必加上onsubmit事件-->

							<fieldset>

							  <p>
								<label>用户名</label>
									<input class="text-input medium-input" type="text" id="medium-input" name="name" />必须
	              </p>
                                <p>
									<label>密码</label>
									<!--将生成加密的密码输入框，只需要指定id，不需要指定name-->
									<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['pwinput'][0][0]->template_pwinput(array('id'=>'password','add'=>"class='text-input small-input' name=password"),$_smarty_tpl);?>
 必须
								</p>
								<p>
								  <label>邮箱</label>
								  <input class="text-input medium-input" type="text" name="mail" />
							  </p>
								<p>
								  <label>网址</label>
								  <input class="text-input medium-input" type="text" name="url" />
							  </p>
                              <p>
							    <label>昵称</label>
								  <input class="text-input medium-input" type="text" name="screenName" />必须
							  </p>
                              <p>
							    <label>电话</label>
								  <input class="text-input medium-input" type="text" name="phone" />
							  </p>
							  <p>
							    <label>用户组</label>
							    <select name="acl" class="small-input">
								<option value="editor">editor</option>
								<option value="administrator">administrator</option>
						        </select>

								<p>
									<input class="button" type="submit" value="Submit" />
								</p>

							</fieldset>

							<div class="clear"></div><!-- End .clear -->

						</form>

					</div>
					<!-- End #tab2 -->

				</div> <!-- End .content-box-content -->

			</div> <!-- End .content-box --><!-- End .content-box --><!-- End .content-box -->
	    <div class="clear"></div>
<?php $_template = new Smarty_Internal_Template("admin/footer.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate(); $_template->rendered_content = null;?><?php unset($_template);?>
<script>
function delconfirm(uid,name){
	if( window.confirm("确定删除“" + name + "”？") ){
		window.location = "<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'user','a'=>'del'),$_smarty_tpl);?>
&uid=" + uid;
	}
}
</script>